package com.jswdwsx.esign.repo

import com.jswdwsx.esign.cloud.enums.OrgIdTypeEnum
import com.jswdwsx.esign.entity.OrgPO
import org.springframework.data.repository.CrudRepository

interface OrgRepository : CrudRepository<OrgPO, String> {
    fun findByIdTypeAndIdNumber(idType: OrgIdTypeEnum, idNumber: String): OrgPO?
    fun findAllByIdTypeAndIdNumber(idType: OrgIdTypeEnum, idNumber: String): List<OrgPO>
}